#!bash
SWINE=../bin/debug/swine.exe
atest=$( ls testdir | $SWINE pick --caption "choose a test to run" )
if [ "$atest" != "" ]
then
    if bash testdir/$atest > /dev/null
    then
       swine msg --caption "Test Run" --text "The test $atest passed" --icon info
    else
       swine msg --caption "Test Run" --text "The test $atest failed" --icon stop
    fi
else
	echo "No test selected"
fi

